package com.sbj.controller;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.sbj.dto.req.OrderReq;
import com.sbj.dto.res.OrderRes;
import com.sbj.dto.res.ShopOrderRes;
import com.sbj.service.OrderService;
import com.zmh.framework.config.BaseCommonInterface;
import com.zmh.framework.util.Result;
import lombok.AllArgsConstructor;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RestController;

import javax.validation.Valid;
import java.util.List;

/**
 * <p>
 *  前端控制器
 * </p>
 *
 * @author summer
 * @since 2024/08/10 10:02:39
 */
@RestController
@RequestMapping("/memberOrder")
@AllArgsConstructor
public class MemberOrderController implements BaseCommonInterface<OrderReq, ShopOrderRes> {

    private final OrderService orderService;

    @Override
    public Result<String> save(@Valid OrderReq orderReq) {
        return null;
    }

    @Override
    public Result<String> del(Integer integer) {
        return null;
    }

    @Override
    public Result<Page<ShopOrderRes>> lists(OrderReq orderReq) {
        return Result.successResult(orderService.lists(orderReq));
    }

    @Override
    public Result<ShopOrderRes> findById(Integer integer) {
        return null;
    }

    @Override
    public Result<String> batchDel(List<ShopOrderRes> list) {
        return null;
    }
}
